@import "./variables.scss";
@import "./element-plus-ui.scss";
@import "./sidebar.scss";

body {
  margin: 0;
  padding: 0;
  border: 0;
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB,
    Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
  background-color: #f1f3f4;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

// 主容器全局css
.app-container {
  padding: 20px;
}
.app-main {
  min-height: calc(100vh - 85px) !important;
  height: 90% !important;
  padding: 1%;
}

/*扩展样式*/
.el-container {
  height: 100% !important;
  border: 1px solid #eee;
}

//工具栏
.toolbar {
  padding: 20px !important;
}
.toolbar .el-button-group {
  float: right;
  margin-right: 1%;
}
.toolbar .el-button-group > .el-dropdown {
  float: left;
  margin-right: -1px;
}
.toolbar .el-button-group > .el-dropdown > .el-button {
  border-radius: 0;
}
.toolbar-right {
  float: right;
  margin-right: 1%;
}

// 卡片
.el-card {
  height: 100%;
}
.el-card__body {
  height: 100%;
}
.box-card + .box-card {
  margin-left: 1%;
  width: 100%;
}

// 滚动条
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-thumb {
  background-color: #a1a3a9;
  border-radius: 3px;
}

//下拉树
.vue-treeselect {
  height: 40px !important;
}
.vue-treeselect__control {
  height: 40px !important;
}

//首页图标收起 居中
#app .hideSidebar .el-submenu > .el-submenu__title {
  text-align: center !important;
}
